<include file="public@header" />
</head>
<body>
<div class="wrap">
	<ul class="nav nav-tabs">
		<li><a href="{:url('Office/personnel')}">人员管理</a></li>
		<li><a href="{:url('Office/add')}">添加人员</a></li>
		<li class="active"><a href="{:url('Office/permission',array('id'=>$id))}">设置权限</a></li>
	</ul>
	<form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('Office/permissioneditost')}">


		<div class="form-group">
			<label  class="col-sm-2 control-label"><span class="form-required">*</span>{:lang('ROLE')}</label>
			<div class="col-md-6 col-sm-10">
				<foreach name="roles" item="vo">
					<label class="checkbox-inline">
						<php>$role_id_checked=in_array($vo['id'],$role_ids)?"checked":"";</php>
						<input value="{$vo.id}" type="checkbox" name="role_id[]" {$role_id_checked} <if condition="cmf_get_current_admin_id() neq 1 && $vo['id'] eq 1">disabled="true"</if>>{$vo.name}
					</label>
				</foreach>
			</div>
		</div>
		<div class="form-group">
			<div class="col-sm-offset-2 col-sm-10">
				<input type="hidden" name="id" value="{$id}" />
				<button type="submit" class="btn btn-primary js-ajax-submit">{:lang('SAVE')}</button>
				<a class="btn btn-default" href="javascript:history.back(-1);">{:lang('BACK')}</a>
			</div>
		</div>
	</form>
</div>
<script src="__STATIC__/js/admin.js?v={:time()}"></script>
</body>
</html>
